<?php
/**
 * @copyright    Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license        GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('_JEXEC') or die;

/**
 * Khoi component helper.
 *
 * @package        Joomla.Administrator
 * @subpackage    com_vast
 * @since        1.6
 */
class KhoisHelper
{
    public static $extension = 'com_vast';

    public static function getActions()
    {
        // Reverted a change for version 2.5.6
        $user = JFactory::getUser();
        $result = new JObject;

        $assetName = 'com_vast';

        $actions = JAccess::getActions('com_vast', 'component');   
                      
        foreach ($actions as $action) {                        
            $result->set($action->name, $user->authorise($action->name, $assetName));                
        }   
                      
        return $result;
    }

}
